home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19950528-19950726 / 000230_news@columbia.edu_Wed Jun 28 08:01:59 1995.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Received: from apakabar.cc.columbia.edu by watsun.cc.columbia.edu with SMTP id AA05100
  2.   (5.65c+CU/IDA-1.4.4/HLK for <kermit.misc@watsun.cc.columbia.edu>); Wed, 28 Jun 1995 04:14:49 -0400
  3. Received: by apakabar.cc.columbia.edu id AA11086
  4.   (5.65c+CU/IDA-1.4.4/HLK for kermit.misc@watsun); Wed, 28 Jun 1995 04:14:48 -0400
  5. Path: news.columbia.edu!sol.ctr.columbia.edu!howland.reston.ans.net!cam.news.pipex.net!pipex!soap.news.pipex.net!pipex!edi.news.pipex.net!pipex!sunic!sunic.sunet.se!news.funet.fi!news.cc.tut.fi!news
  6. From: t130313@130.230.102.14 (Pasi Tolonen)
  7. Newsgroups: comp.dcom.modems,comp.protocols.kermit.misc
  8. Subject: Re: Improved modem dialing for C-Kermit
  9. Date: 28 Jun 1995 08:01:59 GMT
  10. Organization: Tampere University of Technology
  11. Lines: 38
  12. Distribution: world
  13. Message-Id: <3sr29n$hcu@cc.tut.fi>
  14. References: <3seuml$4s6@apakabar.cc.columbia.edu> <3sft9o$8ul@Mars.mcs.com> <3shhv6$6r9@apakabar.cc.columbia.edu> <3sl921$29m@Mercury.mcs.com>
  15. Reply-To: Pasi.Tolonen@cs.tut.fi
  16. Nntp-Posting-Host: kummis21.cc.tut.fi
  17. Mime-Version: 1.0
  18. X-Newsreader: WinVN 0.99.4
  19. Xref: news.columbia.edu comp.dcom.modems:99709 comp.protocols.kermit.misc:3064
  20. Apparently-To: kermit.misc@watsun.cc.columbia.edu
  21.  
  22. In article <3sl921$29m@Mercury.mcs.com>, les@MCS.COM says...
  23.  
  24. >My questions are more general:
  25. >
  26. >How do I make kermit automatically select a suitable free modem from
  27. >those available on the machine? (Preferably without having to keep
  28. >a user base aware of changes or modify scripts every time a modem
  29. >is replaced or moved).
  30.  
  31. Leslie,
  32.  
  33. In our Unix-environments, we handle the situation you described earlier:
  34.  
  35. ...
  36. def POR_SEL IF EXIST /usr/spool/uucp/LCK..tty1a goto NEXT, 
  37.         set line /dev/tty1a, echo Port tty1a selected, goto PORT_OK,
  38.     :NEXT, IF EXIST /usr/spool/uucp/LCK..ttya01 goto NEXT2, 
  39.         set line /dev/ttya01, echo Port ttya01 selected, goto PORT_OK,         
  40.     :NEXT2, IF EXIST /usr/spool/uucp/LCK..tty2a goto PORT_FAIL,
  41.         set line /dev/tty2A, echo Port tty2A selected,  
  42.     :PORT_OK, pause 3, GOTO AWAY, 
  43.     :PORT_FAIL, echo All modems are in use, pause 3,
  44.     :AWAY
  45. ...
  46.  
  47. I quickly translated this from finnish to english, so please allow any
  48. typing mistakes and test it before use (Hmm... actually from script/finnish 
  49. to script/english ;-)). Quick and very very dirty, but it works!
  50.  
  51.  
  52. Regards,
  53.  
  54. Pasi
  55.  
  56. --
  57. Pasi Tolonen          Systems Manager       Analyste Oy
  58. tel: +358-31-2133544  fax: +358-31-2227701  email:Pasi.Tolonen@cs.tut.fi
  59.